export default [
  {
    path: '/',
    name: '接口管理主页',
    component: './index',
  },
  {
    path: '/interface_info/:id',
    name: '查看接口',
    component: './Interfaceinfo',
    hideInMenu: true,
  },
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './User/Login',
      },
    ],
  },

  {
    path: '/admin',
    name: '管理页面',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {
        name: '接口列表',
        icon: 'table',
        path: '/admin/interface',
        component: './admin/Interface_Info',
      },

    ],
  },

  {
    path: '*',
    layout: false,
    component: './404',
  },
];
